package cn.dw.domain;

public class picInfo {

	/**
	 * id主键
	 */
	public Integer id;
	/**
	 * 标题
	 */
	public String title;
	/**
	 * 分类id，外键
	 */
	public picCategory category;
	
	public String categoryNameCN;
	
	public String src0;
	public String desc1;
	public String src1;
	public String src2;
	public String desc2;
	public String src3;
	public String desc3;
	public String desc4;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public picCategory getCategory() {
		return category;
	}
	public void setCategory(picCategory category) {
		this.category = category;
	}
	public String getSrc0() {
		return src0;
	}
	public void setSrc0(String src0) {
		this.src0 = src0;
	}
	public String getDesc1() {
		return desc1;
	}
	public void setDesc1(String desc1) {
		this.desc1 = desc1;
	}
	public String getSrc1() {
		return src1;
	}
	public void setSrc1(String src1) {
		this.src1 = src1;
	}
	public String getSrc2() {
		return src2;
	}
	public void setSrc2(String src2) {
		this.src2 = src2;
	}
	public String getDesc2() {
		return desc2;
	}
	public void setDesc2(String desc2) {
		this.desc2 = desc2;
	}
	public String getSrc3() {
		return src3;
	}
	public void setSrc3(String src3) {
		this.src3 = src3;
	}
	public String getDesc3() {
		return desc3;
	}
	public void setDesc3(String desc3) {
		this.desc3 = desc3;
	}
	public String getDesc4() {
		return desc4;
	}
	public void setDesc4(String desc4) {
		this.desc4 = desc4;
	}
	
	public String getCategoryNameCN() {
		return getCategory().getCategoryNameCN();
	}
	public void setCategoryNameCN(String categoryNameCN) {
		this.categoryNameCN = categoryNameCN;
	}
	
	
	public String toString() {
		return "picInfo [id=" + id + ", title=" + title + ", category=" + getCategory() + ", categoryNameCN="
				+ getCategory().getCategoryNameCN() + ", src0=" + src0 + ", desc1=" + desc1 + ", src1=" + src1 + ", src2=" + src2
				+ ", desc2=" + desc2 + ", src3=" + src3 + ", desc3=" + desc3 + ", desc4=" + desc4 + "]";
	}
	
	
	
	
	
}
